package com.wm.entity;

import lombok.*;


import java.util.Objects;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class RbacPerm {

  private int id;
  private String name;
  private String code;
  private String link;
  private long parentId;
  private String type;
  private String status;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    RbacPerm rbacPerm = (RbacPerm) o;
    return id == rbacPerm.id && Objects.equals(name, rbacPerm.name) && Objects.equals(code, rbacPerm.code) && Objects.equals(link, rbacPerm.link);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, code, link);
  }
}
